﻿using SqlSugar;
using System;
using System.ComponentModel.DataAnnotations;

namespace EShop.Net.Model.Entity
{
    [SugarTable("t_advertisement", TableDescription = "广告表")]
    public class Advertisement
    {
        [Display(Name = "自增ID种子1")]
        [SugarColumn(ColumnDescription = "ID", IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }

        [SugarColumn(ColumnDescription = "添加时间")]
        public DateTime createTime { get; set; }

        [SugarColumn(ColumnDescription = "修改时间", IsNullable = true)]
        public DateTime updateTime { get; set; }

        [SugarColumn(ColumnDescription = "广告名")]
        public string advertisingName { get; set; }

        [SugarColumn(ColumnDescription = "广告图路径")]
        public string advertPath { get; set; }

        [SugarColumn(ColumnDescription = "位置序列")]
        public int positionId { get; set; }
    }
}
